<table class="table table-hover" id="demo">
</table>
<script type="text/javascript">
        $.ajax({
      type: 'POST',
      dataType: 'json',
      url: "/user/findAll",
      success: function( result ) {
    $.each(result, function(i,item){
        $( "#demo" ).append( "<tr><td>"+i+"</td><td>"+item.username+"</td><td>"+item.password+"</td></tr>" );
    });


      }
    });
</script>